package win.smartown.android.viewController.loading

import android.view.View
import android.view.ViewStub

import win.smartown.android.R
import win.smartown.android.base.loading.state.loading.LoadingView

/**
 * Created by smartown on 2017/3/18.
 * <br></br>
 * Description:数据加载中加载提示
 */
class DefaultLoadingView(viewStub: ViewStub) : LoadingView {

    private val view: View

    init {
        viewStub.layoutResource = R.layout.layout_loading_loading
        view = viewStub.inflate()
    }

    override fun startLoading() {
        view.visibility = View.VISIBLE
    }

    override fun finishLoading() {
        view.visibility = View.GONE
    }
}
